
#include "fourInARow.h"

board::board()
{
    // Cria o board e coloca 0 em todas as posicoes
    for( int i = 0; i < 7; i++ )
    {
        for( int j = 0; j < 6; j++ )
        {
            _board[i][j] = 0;
        }
    }
}


board::~board()
{
}


bool board::move( int col, int player )
{
    if( col < 0 || col > 6 )
        return false;

    int curPos = 0;
    while( _board[curPos][col] != 0 )
    {
        if( col > 6 )
            return false;

        curPos++;
    }

    _board[curPos][col] = player;
}


bool isAWin( int player )
{
}

